package values.skill
{
	public class SkillNumTypeKey
	{
		public static const PERCENTAGE:String = "percentage";
		
		public static const DIRECT:String = "direct";
		
		public static function getResult(typeKey:String , oldValue:Number , num:Number):Number
		{
			if(PERCENTAGE == typeKey)
			{
				return oldValue * num / 100;
			}
			
			return num;
		}
		
		public static function getBackResult(typeKey:String , oldValue:Number , num:Number):Number
		{
			if(PERCENTAGE == typeKey)
			{
				return oldValue * 100 / num;
			}
			
			return num;
		}
	}
}